package com.zd.service.lmpl;/**
 * @Description: SignlistZdServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-14
 * @Version:v1.0
 */

import com.zd.mapper.SignlistZdMapper;
import com.zd.service.lnter.SignlistZdServicelnter;
import com.zzg.entity.Departurelist;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: SignlistZdServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-14
 * @Version:v1.0
 */
@Service
public class SignlistZdServicelmpl implements SignlistZdServicelnter {

    @Autowired
    public SignlistZdMapper signlistZdMapper;
    /**
     * 查询签收列表相关的所有信息
     *
     * @return 签收列表集合
     */
    @Override
    public List<Departurelist> selectSignlist() {
        return signlistZdMapper.selectSignlist ();
    }

    /**
     * 分页查询签收列表相关的所有信息
     *
     * @param page  页码
     * @param entry 条目数
     * @return 签收列表集合
     */
    @Override
    public List<Departurelist> pagingquerySignlist(int page, int entry) {
        return signlistZdMapper.pagingquerySignlist ((page-1)*entry,entry);
    }

    /**
     * 通过运单id查询签收列表详情
     *
     * @param checkenumber 运单id
     * @return 签收列表对象
     */
    @Override
    public Departurelist getSignlistByid(String checkenumber) {
        return signlistZdMapper.getSignlistByid (checkenumber);
    }

    /**
     * 通过多条件查询签收列表信息
     *
     * @param departurelist 签收列表对象
     * @return 签收列表集合
     */
    @Override
    public List<Departurelist> getSignlistcondition(Departurelist departurelist) {
        return signlistZdMapper.getSignlistcondition (departurelist);
    }

    /**
     * 通过多条件查询签收列表信息并分页
     *
     * @param departurelist 运单列表对象
     * @param page          页码
     * @param entry         条目数
     * @return 签收列表集合
     */
    @Override
    public List<Departurelist> conditionquerySignlist(Departurelist departurelist, int page, int entry) {
        return signlistZdMapper.conditionquerySignlist (departurelist,page,entry);
    }
}
